package com.example.spring.config;

import com.examppl.spring.entity.Collect;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
@FeignClient(value = "springboot-cillet",fallback = HiColler.class )
public interface Feifen {
    @GetMapping(value = "Sum")
     String   Sum(@RequestParam("id") Integer id);


    //根据用户id给美食点赞
    @RequestMapping(value = "userFood",method = RequestMethod.POST)
       String  userFood(@RequestBody  Collect collect);


    //根据用户id给酒店点赞
    @RequestMapping(value = "userHotel",method = RequestMethod.GET)
       String  userHotel(@RequestBody Collect collect);



    //根据用户id给景点点赞
    @RequestMapping(value = "userctScenic",method = RequestMethod.GET)
   String  userctScenic(@RequestBody Collect collect);


    //根据用户id给商品点赞
    @RequestMapping(value = "usertShop",method = RequestMethod.GET)
  String  usertShop(@RequestBody Collect collect);


    //根据用户id给动态点赞
    @RequestMapping(value = "userDynamic",method = RequestMethod.GET)
    String  userDynamic(@RequestBody Collect collect);


    //根据用户id给商品取消收藏
    @RequestMapping(value = "DeleCollectShop",method = RequestMethod.GET)
 String DeleCollectShop(@RequestBody Collect collect);

    //根据用户id给酒店取消收藏
    @RequestMapping(value = "DeleCollectHotel",method = RequestMethod.GET)
  String DeleCollectHotel(@RequestBody Collect collect);

    //根据用户id给美食取消收藏
    @RequestMapping(value = "DeleCollectFood",method = RequestMethod.GET)
   String DeleCollectFood(@RequestBody Collect collect);


    //根据用户id给景点取消收藏
    @RequestMapping(value = "DeleCollectScenic",method = RequestMethod.GET)
 String DeleCollectScenic(@RequestBody Collect collect);


    //根据用户id给动态取消收藏
    @RequestMapping(value = "DeleCollectDynamic",method = RequestMethod.GET)
   String DeleCollectDynamic(@RequestBody Collect collect);

    //查询收藏的景点
    @RequestMapping(value = "findScenic",method = RequestMethod.GET)
     String  findScenic(int id);

    //查询动态的收藏
    @RequestMapping(value = "finddynamic",method = RequestMethod.GET)
    String  finddynamic(int id);


    //查询收藏的shangpin
    @RequestMapping(value = "findShop",method = RequestMethod.GET)
 String  findShop(int id);

    //查询收藏美食
    @RequestMapping(value = "findFoods",method = RequestMethod.GET)
   String  findFoods(int id);

    //查询收藏的酒电
    @RequestMapping(value = "findHotel",method = RequestMethod.GET)
 String  findHotel(int id);

}
